package org.gitman.filmBase.model;

import java.util.Collection;
import java.util.LinkedList;

public class Person {

	private Integer id;
	private String fullName;
	private Collection<Film> actorRoles;
	private Collection<Film> directorRoles;
	private Collection<Film> screenWriterRoles;
	
	public Person(){
		actorRoles = new LinkedList<Film>();
		directorRoles = new LinkedList<Film>();
		screenWriterRoles = new LinkedList<Film>();
	}
	public Person(Integer id, String fullName){
		actorRoles = new LinkedList<Film>();
		directorRoles = new LinkedList<Film>();
		screenWriterRoles = new LinkedList<Film>();
		this.fullName = fullName;
		this.id = id;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Collection<Film> getActorRoles() {
		return actorRoles;
	}
	public void setActorRoles(Collection<Film> actorRoles) {
		this.actorRoles = actorRoles;
	}
	public Collection<Film> getDirectorRoles() {
		return directorRoles;
	}
	public void setDirectorRoles(Collection<Film> directorRoles) {
		this.directorRoles = directorRoles;
	}
	public Collection<Film> getScreenWriterRoles() {
		return screenWriterRoles;
	}
	public void setScreenWriterRoles(Collection<Film> screenWriterRoles) {
		this.screenWriterRoles = screenWriterRoles;
	}	
	public String getFullName() {
		return fullName;
	}
	public void setFullName(String fullName) {
		this.fullName = fullName;		
	}
	public void addActorRole(Film film){
		actorRoles.add(film);
	}
	public void addDdirectorRole(Film film){
		directorRoles.add(film);
	}
	public void addScreenWriterRole(Film film){
		screenWriterRoles.add(film);
	}
}
